﻿@model KL.Store.Web.Models.SalesModel
@{
    Layout = null;
}
<table class="table table-bordered">
    <thead>
        <tr>
            <td class="hideOnMobile">Barkod</td>
            <td>Stok Adı</td>
            <td>Miktar</td>
            <td>Birim Fiyat</td>
            <td class="hideOnMobile">Yapılan İskonto</td>
            <td class="hideOnMobile">Toplam Fiyat</td>
            <td class="hideOnMobile">Ödeme Tipi</td>
            <td class="hideOnMobile">Fatura No</td>
            <td class="hideOnMobile">Cari Grup</td>
            <td>Şube</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var sale in Model.SalesList)
        {
            <tr class="level@(sale.Sira)">
                <td class="hideOnMobile">@sale.Barkod</td>
                @if (sale.Sira == 0)
                {
                    <td><a href="@sale.LinkUrl" target="_blank">@sale.StokAdi</a></td>                    
                }
                else
                {
                    <td>@sale.StokAdi</td>
                }
                <td>@sale.Miktar.ToString("###,###,##0")</td>
                <td>@sale.BirimFiyat.ToString("###,###,##0.00") TL</td>
                <td class="hideOnMobile">@sale.YapilanIskonto.ToString("###,###,##0.00") TL</td>
                <td class="hideOnMobile">@sale.ToplamFiyat.ToString("###,###,##0.00") TL</td>
                <td class="hideOnMobile">@sale.OdemeTipi</td>
                <td class="hideOnMobile">@sale.FaturaNo</td>
                <td class="hideOnMobile">@sale.CariGrup</td>
                <td>@sale.AmbarAdi</td>
            </tr>
        }
    </tbody>
</table>
